package com.mzd.multipledatasources2.dao.test02;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.mzd.multipledatasources2.bean.TeachersBean;
import com.mzd.multipledatasources2.mapper.test02.TransactionMapping2;

@Component
public class TransactionDao2 {

    @Autowired
    private TransactionMapping2 tm2;

    public boolean save(TeachersBean t) {
        return tm2.save(t)==1;
    }

}
